package com.example.tse.rbhttpservice.service.goods.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.goods.model.GoodsGetSimilarList;
/**
* 获取独立专场列表
* @author wliu
* edit tse
*/
public class GoodsGetSimilarListResponse extends RudderResponse{

private List<GoodsGetSimilarList> getSimilarList = new ArrayList<GoodsGetSimilarList>();


/**
* @return getSimilarList
*/
public List<GoodsGetSimilarList> getGetSimilarList() {
return this.getSimilarList;
}

/**
* @return getSimilarList
*/
public void setGetSimilarList(List<GoodsGetSimilarList> getSimilarList) {
this.getSimilarList = getSimilarList;
}
/**
methodName    GetSimilarList
type          List<GoodsGetSimilarList>
name          getSimilarList
defaultType   new ArrayList<GoodsGetSimilarList>()
*/

/**


    private static void filterFor(GoodsGetSimilarListData goods) {
        if (goods.getSimilarId() == null) {
            goods.setSimilarId("");
        }
        if (goods.getCatId() == null) {
            goods.setCatId("");
        }
        if (goods.getName() == null) {
            goods.setName("");
        }
        if (goods.getImg() == null) {
            goods.setImg("");
        }
        if (goods.getImgType() == null) {
            goods.setImgType("");
        }
        if (goods.getLink() == null) {
            goods.setLink("");
        }
        if (goods.getLinkType() == null) {
            goods.setLinkType("");
        }
    }

    private static void filterFor(GoodsGetSimilarList goods) {
        if (goods.getData() == null) {
            goods.setData(new ArrayList<GoodsGetSimilarListData>());
        } else {
            for (GoodsGetSimilarListData item : goods.getData()) {
                filterFor(item);
            }
        }
        if (goods.getName() == null) {
            goods.setName("");
        }
    }

    public static void filter(GoodsGetSimilarListResponse goods) {
        if (goods.getGetSimilarList() == null) {
            goods.setGetSimilarList(new ArrayList<GoodsGetSimilarList>());
        } else {
            for (GoodsGetSimilarList item : goods.getGetSimilarList()) {
                filterFor(item);
            }
        }
    }

*/

}
